<script setup lang='ts'>
	const emit = defineEmits(['add'])
	function onClick() {
		emit('add', 123)
	}
</script>

   
<template>
	<view>
		子组件
		<button @click="onClick">按钮</button>
	</view>
</template>


<style scoped lang='scss'>

</style>